package com.example.demo.config.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

@Configuration
public class MyEasyJdbcConfig {
    @Bean
    @Autowired
    MyEasyJdbcTemplate myEasyJdbcTemplate(DataSource dataSource) {
        return new MyEasyJdbcTemplate(dataSource);
    }
}
